package com.ftg.learn.comm.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ftg.learn.base.BaseEntity;
import com.ftg.learn.util.desensitization.ChineseNameDesensitization;
import com.ftg.learn.util.desensitization.Desensitization;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author kangjx
 * @since 2022-09-30
 */
@Data
@ApiModel(value = "用户表",description = "用户表映射对象")
@TableName("sys_user")
public class User extends BaseEntity {

    /**
     * 帐号
     */
    @TableField("u_account")
    @ApiModelProperty(value = "帐号",example = "admin",required = true)
    @Desensitization(ChineseNameDesensitization.class)
    private String uaccount;

    /**
     * 密码
     */
    @TableField("u_password")
    @ApiModelProperty(value = "密码",example = "123456",required = true)
    private String upassword;

    /**
     * 员工表主键
     */
    @TableField("e_id")
    @ApiModelProperty(value = "员工表主键",example = "1001",required = true)
    private Integer eid;


}
